package com.zxjbyte.yiyi.module.system.domain.param;

import com.zxjbyte.yiyi.framework.common.domain.KVStore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Author zhangxingjia
 * @Date 2023/5/12 16:27
 * @Version: 1.0
 */
@Data
@Schema(description = "对象存储配置编辑请求结构体")
public class OssConfigUpdateParam {

    @Schema(description = "唯一id")
    @NotNull(message = "id不能为空")
    private Long id;

    @Schema(description = "配置名")
    private String name;

    @Schema(description = "存储配置是动态参数")
    @NotEmpty(message = "存储配置不能为空")
    private KVStore config;
}
